package v2.parser

/**
 * @author bweber
 * @version $Rev$, $Date$
 */

class Literal private (var value:String,val theType:Type) extends Value {
  override def getType() = {
    theType
  }
  
  override def toString() = {
    "literal with value [" + value + "]"
  }
}

object Literal {
  def apply(value:String,typeRef:TypeRef) = {
    new Literal(value,Type(typeRef))
  }
  def apply(value:String, theType:Type ) = {
    new Literal(value,theType)
  }
}